//
//  HomeTableViewHeaderCell.m
//  NewsDemo
//
//  Created by 何欣 on 15/7/9.
//  Copyright (c) 2015年 何欣. All rights reserved.
//

#import "HomeTableViewHeaderCell.h"

@interface HomeTableViewHeaderCell ()

@property(nonatomic,retain)UIImageView *imageView;

@end


@implementation HomeTableViewHeaderCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        
        [self.contentView addSubview:self.imageView];
        
    }
    return self;
}

-(void)setImageForImageView:(NSString *)imgUrl{

    [self.imageView sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:nil];
}


@end
